import bb.cascades 1.3
import bb.WebImageView 1.4

Container {
    property variant item
    
    onItemChanged: {
        console.log(JSON.stringify(item))
        img.url = item.content.bgImage
        img.preferredWidth = item.screenWidth
    }
    
    WebImageView {
        id: img
        preferredHeight: 142*(preferredWidth/558)
        preferredWidth: 0
    }
}
